package cn.wolfcode.service;

import cn.wolfcode.domain.Travel;
import cn.wolfcode.domain.UserInfo;
import cn.wolfcode.query.TravelQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ITravelService {
    void insert(Travel travel);
    void update(Travel travel);
    void delete(String id);
    Travel get(String id);
    List<Travel> listAll();

    Page query(TravelQuery qo);


    void changeAudit(String id,int state);

    void saveOrUpdate(Travel travel,UserInfo user);

    List<Travel> viewnumTop3(String destId);

    List<Travel> queryByDestName(String keyword);
}
